package com.cn.bean;

public class Book {
    private String name;
    private Integer number;
    private String author;

    public Book(String name, Integer number, String author) {
        this.name = name;
        this.number = number;
        this.author = author;
    }
    public Book(){}

    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "Book{" +
                "name='" + name + '\'' +
                ", number=" + number +
                ", author='" + author + '\'' +
                '}';
    }
}
